package com.qf.springmvc02.service;

import com.github.pagehelper.PageInfo;
import com.qf.springmvc02.entity.User;

import java.util.List;

/**
 * @author nk
 * @date 2022/5/6 17:33
 */
public interface UserService {


        //pageHelper分页查询
        PageInfo<User> selectAllUser(Integer pageIndex, Integer pageSize);

        User selectById(Integer id);

        int addUser(User user);

        int update(User user);

        int deleteById(Integer id);

        //业务层的登录方法
        User login(String name,String password);

        List<User> searchByNameFuzzy(String name);

}
